<script setup>
    import { reactive, toRef, toRefs } from "vue";
    // toRefs 将所有属性转换为ref对象
    let web = reactive({
        name: "laoda",
        url: "www.laoda.com"
    })

    // let {name, url} = toRefs(web)

    let url = toRef(web, "url")

    console.log(url);



</script>

<template>

    {{ url }}

</template>

<style scoped>

</style>